//
//  DDRViewController.h
//  Lottolandia
//
//  Created by Luca D'Antona on 23/11/13.
//  Copyright (c) 2013 Quelli for Lotto. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BLE.h"
#import <AVFoundation/AVFoundation.h>

#define UP 0
#define DOWN 1
#define LEFT 2
#define RIGHT 3

@interface CampanaViewController : UIViewController <BLEDelegate, AVAudioPlayerDelegate> {
    BLE *bleShield;
    
    AVAudioPlayer *player;
}

@property (strong, nonatomic) IBOutlet UIButton *btnUp;
@property (strong, nonatomic) IBOutlet UIButton *btnLeft;
@property (strong, nonatomic) IBOutlet UIButton *btnRight;
@property (strong, nonatomic) IBOutlet UIButton *btnDown;
@property (strong, nonatomic) IBOutlet UILabel *lblOk;
@property (strong, nonatomic) IBOutlet UILabel *lblNo;
@property (strong, nonatomic) IBOutlet UIButton *btnConnect;
@property (strong, nonatomic) IBOutlet UIButton *startButton;

@property (strong, nonatomic) IBOutlet UILabel *counter;
- (IBAction)BLEShieldScan:(id)sender;
- (IBAction)backToPark:(id)sender;
- (IBAction)start:(id)sender;


@end